package com.itheima.method1;

import java.util.Scanner;

public class Demo3Method {
    public static void main(String[] args) {
        System.out.println("请输入一个整数");
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        method(x);
    }

    public static void method(int num){
        if (num % 2 == 0){
            System.out.println("偶数");
        }else{
            System.out.println("奇数");
        }
    }
}
